package com.example.pcmintuidemo;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity implements View.OnClickListener{


    private Button button;

    private static final String TAG = MainActivity.class.getName();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        button = findViewById(R.id.button);
    }

    @Override
    protected void onResume() {
        super.onResume();
        button.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent();
        intent.setClass(MainActivity.this,MyRankingActivity.class);
        intent.putExtra("thisUrl","thisUrl");
        intent.putExtra("nextUrl","http://fanyi.youdao.com/");
        intent.putExtra("userId",12);
        MainActivity.this.startActivity(intent);
    }
}
